<?php 
class Design {
	
	private $raiz;
	
	function Design($raiz) {
		$this->raiz = $raiz;
	}
	
	function imprimir_topo() {
		echo "
		<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">
		<html>
		<head>
		<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">
		<link rel=\"stylesheet\" href=\"".$this->raiz."/css/estilo.css\" type=\"text/css\">
		<title>Minicurso PHP</title>
		</head>
		<body>
		<div class=\"meio\">
			<a href=\"" . $this->raiz . "/index.php\">
				<img src=\"" . $this->raiz . "/img/topo.png\" />
			</a><br />
			<a href=\"".$this->raiz."/marcas/index.php\"><img src=\"".$this->raiz."/img/volks.png\" style=\"vertical-align: middle;\" /> Marcas</a> &nbsp;&nbsp;&nbsp;
			<a href=\"".$this->raiz."/modelos/index.php\"><img src=\"".$this->raiz."/img/carros.png\" style=\"vertical-align: middle;\" /> Modelos</a> &nbsp;&nbsp;&nbsp;
			<a href=\"".$this->raiz."/automoveis/index.php\"><img src=\"".$this->raiz."/img/cars.png\" style=\"vertical-align: middle;\" /> Automóveis</a> &nbsp;&nbsp;&nbsp;  
 			<a href=\"".$this->raiz."/clientes/index.php\"><img src=\"".$this->raiz."/img/clientes.gif\" style=\"vertical-align: middle;\" /> Clientes</a>
			
			<div class=\"conteudo\">
		";
	}
	
	function imprimir_rodape() {
		echo "
			</div>
			<div class=\"rodape\">
				Minicurso PHP e Sistemas Web - Maio 2012 - Campina Grande, UFCG<br/>
				Apresentado e desenvolvido por <a href=\"http://jpribeiro.com\" target=\"_blank\">João Paulo</a><br/>
				&nbsp;<a href=\"mailto: joaop.ribs@gmail.com\" target=\"_blank\">joaop.ribs@gmail.com</a>&nbsp; | 
				&nbsp;<a href=\"http://jpribeiro.com\" target=\"_blank\">jpribeiro.com</a>
			</div>
		</div>
		</body>
		</html>
		";
	}
	
	function get_imagem($nome_arquivo) {
		return "<img src=\"" . $this->raiz . "/img/$nome_arquivo\" />";
	}
	
}

?>